package com.clt.ess.gjzw.domain.confirmReceipt;

import java.io.Serializable;

//提交确认信息接口的请求业务参数所需data类
public class ConfirmReceiptRequestData implements Serializable {
    //在一项业务处理中，国家政务服务平台电子印章信任支撑系统返回的业务编号，用于串联上下文
    //必须
    private String taskId;
    //印章编码
    //必须
    private String yzbm;
    //设备编码
    //必须
    private String deviceCode;
    //BASE64 编码的设备编码密文
    //必须
    private String encDeviceCode;

    /**
     {
         "taskId ": "abcdefg123456",
         "yzbm": "印章编码",
         "deviceCode": "设备编码",
         "encDeviceCode": "BASE64 编码的设备编码密文"
     }
     */

    public ConfirmReceiptRequestData() {
    }

    public ConfirmReceiptRequestData(String taskId, String yzbm, String deviceCode, String encDeviceCode) {
        this.taskId = taskId;
        this.yzbm = yzbm;
        this.deviceCode = deviceCode;
        this.encDeviceCode = encDeviceCode;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getYzbm() {
        return yzbm;
    }

    public void setYzbm(String yzbm) {
        this.yzbm = yzbm;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getEncDeviceCode() {
        return encDeviceCode;
    }

    public void setEncDeviceCode(String encDeviceCode) {
        this.encDeviceCode = encDeviceCode;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"taskId\":\"")
                .append(taskId).append('\"');
        sb.append(",\"yzbm\":\"")
                .append(yzbm).append('\"');
        sb.append(",\"deviceCode\":\"")
                .append(deviceCode).append('\"');
        sb.append(",\"encDeviceCode\":\"")
                .append(encDeviceCode).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
